package edu.ynu.se.xiecheng.achitectureclass.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.entity.Item;
import edu.ynu.se.xiecheng.achitectureclass.entity.Shop;
import edu.ynu.se.xiecheng.achitectureclass.entity.ShopItem;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Set;

public interface ShopItemDao extends LogicDAO<ShopItem,Long> {
    public ShopItem findByItemAndShop(Item item, Shop shop);
    Set<ShopItem> findAllByShop(Shop shopOther);
    List<ShopItem> findAllByShopAndShelfStatus(Shop shop, Integer shelfStatus);
}